package com.tang.model.guava;

import com.google.common.eventbus.Subscribe;

/**
 * @Author tangyuan2meicloud.com
 * @DATE 2021/9/6 20:56
 * @Desc
 * @Remarks
 */
public class PersonEvent {

    @Subscribe
    public void personListener(Object object){
        if (object instanceof Person){
            System.out.println("收到消息！内容如下：");
            System.out.println(object);
        }
    }

}
